package cate.common.table.activity.luckybag.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.luckybag.row.LuckyBagExchangeRow;

import java.util.List;
import java.util.stream.Collectors;

public class LuckyBagExchangeSheet extends ESheet<LuckyBagExchangeRow> {
    @Override
    public String getSheetName() {
        return "兑换";
    }

    public List<LuckyBagExchangeRow> getRowsByGroup(int group) {
        return getList().stream().filter(row -> row.group == group).collect(Collectors.toList());
    }
}
